package org.scirp.ijmis.service.personpaper.impl;

import org.scirp.ijmis.dao.personpaper.IProofReadDAO;
import org.scirp.ijmis.dao.personpaper.ITypeSettingDAO;
import org.scirp.ijmis.po.personpaper.ProofRead;
import org.scirp.ijmis.po.personpaper.TypeSetting;
import org.scirp.ijmis.service.personpaper.IProofReadAndTypeSettingService;

public class ProofReadAndTypeSettingServiceImpl implements IProofReadAndTypeSettingService {
	private IProofReadDAO proofReadDAO;
	private ITypeSettingDAO typeSettingDAO;

	public boolean saveOrUpdateProofReadAndTypeSetting(ProofRead proofRead, TypeSetting typeSetting) {
		return (proofReadDAO.saveOrUpdateProofRead(proofRead)) && (typeSettingDAO.saveOrUpdateTypeSetting(typeSetting));
	}

	public IProofReadDAO getProofReadDAO() {
		return proofReadDAO;
	}

	public void setProofReadDAO(IProofReadDAO proofReadDAO) {
		this.proofReadDAO = proofReadDAO;
	}

	public ITypeSettingDAO getTypeSettingDAO() {
		return typeSettingDAO;
	}

	public void setTypeSettingDAO(ITypeSettingDAO typeSettingDAO) {
		this.typeSettingDAO = typeSettingDAO;
	}

}
